package com.atguigu.system.service;


import com.atguigu.model.system.SysMenu;
import com.atguigu.model.vo.AssginMenuVo;
import com.atguigu.model.vo.RouterVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 菜单表 服务类
 * </p>
 *
 * @author yqr
 * @since 2023-06-07
 */
public interface SysMenuService extends IService<SysMenu> {
    //获取树型菜单
    List<SysMenu> findNodes();

    //删除菜单
    void removeMenuById(String id);

    //编辑角色菜单权限
    List<SysMenu> distributionById(String id);

    //修改角色菜单权限
    void updatePermissions(AssginMenuVo assginMenuVo);

    //查询用户菜单权限
    List<RouterVo> getUserMenuList(String userId);

    //查询用户按钮权限
    List<String> getUserButtonList(String userId);
}
